package com.service;

import com.mapper.SysUserMapper;
import com.pojo.Sys_User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysUserService {
    @Resource
    private SysUserMapper mapper;

    public List<Sys_User> selectAll() {
        return mapper.selectAll();
    }

    public Sys_User selectByLoginName(Sys_User user){
        return mapper.selectOne(user);
    }
}
